<template>
  <section class="shipment-sender-info">
    {{ row.totalWaybillQuantity }}单
    <br v-if="row.calculateWeight || row.calculateVolume || row.totalQuantity" />
    {{ Number(row.calculateWeight.toFixed(2)) }}公斤
    <span v-if="row.calculateVolume"> | {{ Number(row.calculateVolume.toFixed(2)) }}方</span>
    <span v-if="row.totalQuantity"> | {{ row.totalQuantity }}件</span>
  </section>
</template>

<script>
export default {
  name: "WayBillInfo",
  props: {
    row: {
      type: Object,
      default: () => { }
    }
  }
};
</script>
<style scoped>
.shipment-sender-info {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>